Returns a long integer color value consisting of red, green, and blue components.
赤 (Red)、緑 (Green)、青 (Blue) のコンポーネントで指定されたロング整数を返します。
RGB (Red, Green, Blue)
RGB (Red, Green, Blue)
Long
ロング整数
Red: Any integer expression that represents the red component (0-255) of the composite color.
Red:コンポジットカラーの、赤 (Red) コンポーネントを指定する整数表式 (0-255)。
Green: Any integer expression that represents the green component (0-255) of the composite color.
Green:コンポジットカラーの、緑 (Green) コンポーネントを指定する整数表式 (0-255)。
Blue: Any integer expression that represents the blue component (0-255) of the composite color.
Blue:コンポジットカラーの、青 (Blue) コンポーネントを指定する整数表式 (0-255)。
Sub ExampleColor
Sub ExampleColor
Dim lVar As Long
Dim lVar As Long
lVar = rgb(128,0,200)
lVar = rgb(128,0,200)
msgbox "The color " & lVar & " consists of:" & Chr(13) &_
msgbox "The color " & lVar & " consists of:" & Chr(13) &_
"red= " & red(lVar) & Chr(13)&_
"red= " & red(lVar) & Chr(13)&_
"green= " & green(lVar) & Chr(13)&_
"green= " & green(lVar) & Chr(13)&_
"blue= " & blue(lVar) & Chr(13) , 64,"colors"
"blue= " & blue(lVar) & Chr(13) , 64,"colors"
end sub
end sub